/**
 * Copyright (c) Software Institute of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.transformation.editor.internal;

import org.eclipse.ui.IStartup;

import edu.pku.sei.modeler.actions.registry.MetaModelActionRegistry;
import edu.pku.sei.modeler.explorer.registry.TreeViewProviderRegistry;
import edu.pku.sei.modeler.project.ProjectRegistry;
import edu.pku.sei.transformation.editor.actions.TransformationEditorActionProvider;
import edu.pku.sei.transformation.editor.views.tree.EditorTreeViewContentProvider;
import edu.pku.sei.transformation.editor.views.tree.EditorTreeViewLabelProvider;

/**
 * @generated
 * 
 */
public class TransformationEditorStartup implements IStartup {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.IStartup#earlyStartup()
	 */
	public void earlyStartup() {
		System.out.println("transformation editor bundle started");
		TransformationEditorProjFactory factory = new TransformationEditorProjFactory();
		ProjectRegistry.getDefault().addProjFactory(factory);

		MetaModelActionRegistry.getDefault().addActionFactory(
				new TransformationEditorActionProvider());
		// EditorActionRegistry.getDefault().addEditorActions(new
		// MetaModelEditorContextMenuActionProvider());
		TreeViewProviderRegistry.getDefault().addTreeViewProvider(
				new EditorTreeViewContentProvider(),
				new EditorTreeViewLabelProvider());
	}

}
